package commpackage;

public class ConnectionType {

	private String hostname;
	private String protocol;
	private int portNumber;
	private boolean serverType;
	private boolean needSecurity;

	public ConnectionType() { }

	public boolean isServer() { return serverType; }
	public String getHostname() { return hostname; }
	public String getProtocol() { return protocol; }
	public int getPort() { return portNumber; }
	public boolean getSecurity() { return needSecurity; }

	public void setHostname(String hostname) {
		this.hostname = hostname;
	}

	public void setServer(boolean server)
	{
		this.serverType = server;
	}
	public void getProtocol(String protocol) {
		this.protocol = protocol;
	}
	public void setPort(int port) {
		this.portNumber = port;
	}
	public void setSecurity(boolean security) {
		this.needSecurity = security;
	}
}
